package com.yeqifu.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import java.io.Serializable;

/**
 * @author 陈子鸿
 * @version 1.0
 * @date 2020/12/21 10:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bus_goods_date")
@ToString
public class GoodsDate implements Serializable {
    private static final long serialVersionUID=1L;
    @TableId(value = "id", type = IdType.AUTO)
    //记录编号
    private Integer id;
    //商品编号
    private Integer goodsid;
    private String name;
    //生产日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date prodate;
    //保质期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qualdate;
    //批次数量
    private int num;
    //仓库编号
    private Integer depotid;
    //货架编号
    private Integer locationid;
    //地区编号
    private Integer areaid;
}
